package com.kingint.mbg.bas.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 排班
 * </p>
 *
 * @author wxh
 * @since 2021-01-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Scheduling对象", description="排班")
public class Scheduling implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "酒店id")
    @TableField("hotel_id")
    private Integer hotelId;

    @ApiModelProperty(value = "排班开始时间")
    @TableField("scheduling_start")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date schedulingStart;

    @ApiModelProperty(value = "排班结束时间")
    @TableField("scheduling_end")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date schedulingEnd;

    @ApiModelProperty(value = "排班段（1是早班，2是中班，3是晚班）")
    @TableField("period")
    private Integer period;

    @TableField(exist = false)
    private String frontStarTime;

    @TableField(exist = false)
    private String frontEndTime;

}
